import request from "../utils/request.js";
export default {
    getAll: () => {
        return request({
            type: "get",
            url: "/message"
        })
    },
    addmessage: (message) => {
        return request({
            method: "post",
            url: "/message/add",
            data: message
        })
    },
    delete :(_id)=>{
        return request({
            method:"delete",
            url:`/message/delete/${_id}`
        })
    }
}